<%@tag description="Empty Template for David" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
	<head>
		<title>David</title>
		
		<link rel="icon" type="image/jpg" href="site/images/david.jpg">
		
		<link type="text/css" href="site/css/david.css" rel="stylesheet" />
		<link type="text/css" href="site/css/redmond/jquery-ui-1.8.16.custom.css" rel="Stylesheet" />
		<link type="text/css" href="site/css/ui.jqgrid.css" rel="stylesheet" />
		<link type="text/css" href="site/css/colorbox.css" rel="stylesheet" />			
		<link type="text/css" href="site/css/superfish.css" rel="stylesheet" />		
		<link type="text/css" href="site/css/1500_20_5_5.css" rel="stylesheet" />
		
		<script type="text/javascript" src="site/js/jquery-1.6.2.min.js"></script>
		<script type="text/javascript" src="site/js/jquery-ui-1.8.16.custom.min.js"></script>	
		<script type="text/javascript" src="site/js/i18n/grid.locale-nl.js"></script>
		<script type="text/javascript" src="site/js/jquery.jqGrid.min.js"></script> <!-- jq grid -->
		<script type="text/javascript" src="site/js/jquery.colorbox.js"></script> <!-- popup -->
		<script type="text/javascript" src="site/js/hoverIntent.js"></script> <!-- used for the menu -->
		<script type="text/javascript" src="site/js/jquery.maskedinput-1.3.min.js"></script> <!--  masked input -->
		<script type="text/javascript" src="site/js/utils.js"></script>
		<script type="text/javascript" src="site/js/moment.js"></script><!-- time library -->
		<script type="text/javascript" src="site/js/ZeroClipboard.js"></script>
						
	</head>
	<body>	
				
		<div id="contentContainer" >
			<jsp:doBody/>
		</div>
		
		<c:choose>			
			<c:when test="${feedback != null && feedback.show}">
				<div id="feedbackContainer" style="clear:both;">			
					<ul>
						<c:forEach var="feedbackMessage" items="${feedback.messages}">                
                    		<li>${feedbackMessage.message}</li>
                    		<script>
								$(function() {												
									$('#${feedbackMessage.field}').addClass('fieldError');
									$('#${feedbackMessage.field}').focus();
								});
					        </script>                
                		</c:forEach>
               		</ul>			
				</div>
			</c:when>
		</c:choose>
				
		<c:choose>
			<c:when test="${warningFeedback != null && warningFeedback.show}">
				<div id="warningFeedbackContainer" class="grid_18 alpha omega">			
					<ul>
						<c:forEach var="warningFeedbackMessage" items="${warningFeedback.messages}">                
                   			<li>${warningFeedbackMessage.message}</li>
                   			<c:if test="${not empty warningFeedbackMessage.field}">
                  				<script>
									$(function() {												
										$('#${warningFeedbackMessage.field}').addClass('fieldWarning');
										$('#${warningFeedbackMessage.field}').focus();
									});
						        </script>
					        </c:if>	
                   			                    			                    		
               			</c:forEach>
               		</ul>			
				</div>
			</c:when>
		</c:choose>			
	</body>	
</html>